﻿@{
    Layout = null;
    ViewBag.Title = "Northwind Company - Customers";
}

<h2>Customers</h2>

@(Html.Kendo().Grid<NorthwindSample.Data.Customer>()
    .Name("customerGrid")
    .Columns(columns =>
    {
        columns.Bound(m => m.CompanyName);
        columns.Bound(m => m.ContactName);
        columns.Bound(m => m.ContactTitle);
        columns.Bound(m => m.Phone);
    })
    .DataSource(dataSource => dataSource.Ajax().Read(read => read.Action("GetCustomers", "Customers")))
)